﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace HomeRun.DB.RowState
{
  class RowStateOfDelete:RowStateBase
  {
    public RowStateOfDelete(DataRow origRow)
      : base(origRow)
    {
      FillRowState(origRow);
    }
    public override bool Replay()
    {
      DataTable table = HomeRunDB.Instance.Data.Tables[Table];
      DataRow newdr = table.NewRow();
      for (int i = 0; i < values.Count; i++)
      {
        newdr[i] = values[i];
      }
      table.Rows.Add(newdr);
      return true;
    }
  }
}
